#include "room.h"
#include <QDebug>

Room::Room(int roomNo)
{
    qDebug() << "Room::Room(int roomNo)";
    _roomNumber = roomNo;
    initSides();
}

MapSite *Room::side(Direction d)
{
    return _sides[d];
}

void Room::setSide(Direction d, MapSite *m)
{
//    if (_sides[d] != 0)
//        return;

    _sides[d] = m;
}

void Room::enter()
{
    // TODO: add implementation
}

void Room::initSides()
{
    for (unsigned int i = 0; i != SidesCount; ++i)
        _sides[i] = 0;
}
